import { errFunc } from "./index";

export default [
  {
    // 分成统计列表
    path: "/settlement/distrib",
    name: "settlementDistrib",
    meta: {
      noCache: true,
      title: '分成统计',
      module: "settlementDistrib", // 用于菜单判断当前选中项
      parent: "settlement" // 如果设置了该字段,值为菜单展开项
    },
    component: () =>
      import("@/views/settlement/distrib").catch(err => {
        errFunc(err);
      })
  },
  {
    // 分成统计-结算明细
    path: "/settlement/distrib/detailed",
    name: "settlementDetailed",
    meta: {
      noCache: true,
      title: '结算明细',
      module: "settlementDetailed", // 用于菜单判断当前选中项
      parent: "settlement" // 如果设置了该字段,值为菜单展开项
    },
    component: () =>
      import("@/views/settlement/distrib/detailed").catch(err => {
        errFunc(err);
      })
  },
  {
    // 订单统计列表
    path: "/settlement/order",
    name: "settlementOrder",
    meta: {
      noCache: true,
      title: '订单统计',
      module: "settlementOrder", // 用于菜单判断当前选中项
      parent: "settlement" // 如果设置了该字段,值为菜单展开项
    },
    component: () =>
      import("@/views/settlement/order").catch(err => {
        errFunc(err);
      })
  },
  {
    // 收益结算列表
    path: "/settlement/earning",
    name: "settlementEarning",
    meta: {
      noCache: true,
      title: '收益结算',
      module: "settlementEarning", // 用于菜单判断当前选中项
      parent: "settlement" // 如果设置了该字段,值为菜单展开项
    },
    component: () =>
      import("@/views/settlement/earning").catch(err => {
        errFunc(err);
      })
  }
];
